﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng Ký Thông Tin</title>
    <style type="text/css">
        .pageView
        {
            border-top: none;
            margin-top: 1px;
            height: 600px;
            width: 850px;
            vertical-align: middle;
        }
        .style1
        {
            width: 285px;
        }
    </style>

    <script src="Scripts/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        function ReloadPage()
        {    
            closeRadWindow();
            location.href = location.href;
        }    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Inox" MultiPageID="RadMultiPage1"
        SelectedIndex="0" Align="Center" ReorderTabsOnSelect="True" Width="462px" Height="5px"
        CausesValidation="False">
        <Tabs>
            <telerik:RadTab Text="Đăng Ký" Width="150px">
            </telerik:RadTab>
            <telerik:RadTab Text="Đăng Nhập" Width="150px">
            </telerik:RadTab>
            <telerik:RadTab Text="Quên Mật Khẩu" Width="150px">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView"
        Width="463px" Height="350px">
        <telerik:RadPageView ID="RadPageView1" runat="server">
            <div>
                <table style="margin: 20px 0 0 30px; color: #4d595b; width: 432px;" align="center">
                    <tr>
                        <td style="padding: 5px; font-style: italic; font-size: 12px;" colspan="2" align="right">
                            Những thông tin có đánh dấu <span style="color: Red">(*)</span> là bắt buộc nhập.
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" valign="top">
                            Tên Đăng Nhập <span style="color: Red">(*)</span>
                        </td>
                        <td style="padding: 5px">
                            <asp:TextBox ID="txtUserNameDangKy" runat="server" Width="250"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Font-Size="12px"
                                ErrorMessage="Bạn Chưa Nhập Tên Đăng Nhập!!!" ControlToValidate="txtUserNameDangKy" />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" valign="top">
                            Mật Khẩu <span style="color: Red">(*)</span>
                        </td>
                        <td style="padding: 5px">
                            <asp:TextBox ID="txtPasswordDangKy" runat="server" Width="250" TextMode="Password"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Font-Size="12px"
                                ErrorMessage="Bạn Chưa Nhập Mật Khẩu!!!" ControlToValidate="txtPasswordDangKy" /><br />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Mật Khẩu Phải Từ 5 Đến 15 Ký Tự!!!"
                                ControlToValidate="txtPasswordDangKy" Display="Dynamic" ValidationExpression=".{5,15}">
                            </asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" valign="top">
                            Xác Nhận Mật Khẩu <span style="color: Red">(*)</span>
                        </td>
                        <td style="padding: 5px">
                            <asp:TextBox ID="txtConfirm" runat="server" Width="250" TextMode="Password"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Font-Size="12px"
                                ErrorMessage="Bạn Chưa Nhập Xác Nhận Mật Khẩu!!!" ControlToValidate="txtConfirm" /><br />
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Xác Nhận Mật Khẩu Không Đúng!!!"
                                ControlToValidate="txtConfirm" ControlToCompare="txtPasswordDangKy"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" valign="top">
                            Email <span style="color: Red">(*)</span>
                        </td>
                        <td style="padding: 5px">
                            <asp:TextBox ID="txtEmail" runat="server" Width="250"></asp:TextBox><br />
                            <asp:Label ID="Label2" runat="server" Text="Ex : gurusolution@yahoo.com" ForeColor="green"
                                Font-Size="12px"></asp:Label><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Font-Size="12px"
                                ErrorMessage="Bạn Chưa Nhập Email!!!" ControlToValidate="txtEmail" /><br />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Email Không Hợp Lệ!!!"
                                ControlToValidate="txtEmail" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                            </asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" valign="top">
                            Địa Chỉ
                        </td>
                        <td style="padding: 5px">
                            <asp:TextBox ID="txtAddress" runat="server" Width="250" TextMode="MultiLine" Height="60"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" valign="top">
                            Số Điện Thoại
                        </td>
                        <td style="padding: 5px">
                            <asp:TextBox ID="txtPhone" runat="server" Width="250"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" colspan="2" align="right">
                            <asp:Button ID="btnDangKyDk" runat="server" Text="ĐĂNG KÝ" Style="background-image: url('Images/btn_createacc.gif');"
                                Font-Bold="True" Font-Size="Medium" ForeColor="White" Height="30px" Width="105px"
                                Font-Names="Times New Roman" OnClick="btnDangKyDk_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server">
            <div>
                <br />
                <br />
                <br />
                <br />
                <br />
                <table style="margin: 20px 0 0 30px; color: #4d595b; width: 424px;" align="center">
                    <tr>
                        <td style="padding: 5px;" valign="top">
                            Tên Đăng Nhập
                        </td>
                        <td style="padding: 5px" align="right" class="style1">
                            <asp:TextBox ID="txtUsernameLogin" runat="server" Width="250px"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" valign="top">
                            Mật Khẩu
                        </td>
                        <td style="padding: 5px" align="right" class="style1">
                            <asp:TextBox ID="txtPasswordLogin" runat="server" Width="250px" TextMode="Password"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" colspan="2" align="right">
                            <asp:Button ID="btnDangNhapDN" runat="server" Text="ĐĂNG NHẬP" Style="background-image: url('Images/btn_createacc.gif');"
                                Font-Bold="True" Font-Size="Medium" ForeColor="White" Height="30px" Width="110px"
                                Font-Names="Times New Roman" OnClick="btnDangNhapDN_Click" 
                                CausesValidation="False" />
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView3" runat="server">
            <div>
                <br />
                <br />
                <br />
                <br />
                <br />
                <table style="margin: 20px 0 0 30px; color: #4d595b; width: 424px;" align="center">
                    <tr>
                        <td style="padding: 5px;" valign="top">
                            Tên Đăng Nhập
                        </td>
                        <td style="padding: 5px" align="right" class="style1">
                            <asp:TextBox ID="txtUserNameQMK" runat="server" Width="250px"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" valign="top">
                            Email
                        </td>
                        <td style="padding: 5px" align="right" class="style1">
                            <asp:TextBox ID="txtEmailQMK" runat="server" Width="250px"></asp:TextBox><br />
                            <asp:Label ID="Label1" runat="server" Text="Email Này Phải Giống Lúc Đăng Ký!!!"
                                ForeColor="green" Font-Size="12px"></asp:Label><br />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 5px" colspan="2" align="right">
                            <asp:Button ID="btnQuenMatKhau" runat="server" Text="GỬI YÊU CẦU" Style="background-image: url('Images/btn_createacc.gif');"
                                Font-Bold="True" Font-Size="Medium" ForeColor="White" Height="30px" Width="120px"
                                Font-Names="Times New Roman" OnClick="btnQuenMatKhau_Click" 
                                CausesValidation="False" />
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
    </form>
</body>
</html>
